/* 会话列表页面样式 */
.session-list-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* 页面头部样式 */
.session-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 120px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.session-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

/* 会话列表滚动区域 */
.session-scrollview {
  flex: 1;
  background-color: #f5f5f5;
}

/* 会话项样式 */
.session-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
  height: 120px;
  cursor: pointer;
}

.session-item:active {
  background-color: #ebf0e9;
}

/* 头像容器样式 */
.session-avatar-container {
  position: relative;
  margin-right: 16px;
}

.session-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f0f0f0;
}

/* 未读消息徽章 */
.session-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background-color: #ff4757;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

.session-unread-text {
  line-height: 18px;
}

/* 会话信息区域 */
.session-info {
  flex: 1;
  min-width: 0;
  margin-right: 70rpx; /* 为关闭按钮预留空间 */
}

.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.session-coach-name {
  font-size: 32px;
  font-weight: 600;
  color: #333333;
}

.session-timestamp {
  position: absolute;
  right: 20rpx;
  top: 80rpx;
  font-size: 24rpx;
  color: #999999;
}

.session-last-message {
  font-size: 16px;
  color: #666666;
  line-height: 1.4;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%; /* 移除宽度限制，充分利用空间 */
}

/* 删除按钮样式 */
.session-delete-button {
  position: absolute;
  right: 20rpx;
  top: 20rpx;
  width: 50rpx;
  height: 50rpx;
  background-color: rgba(255, 71, 87, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.session-delete-icon {
  font-size: 20px;
  color: #ff4757;
}

/* 没有更多数据样式 */
.session-no-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.session-no-more-text {
  font-size: 14px;
  color: #999999;
}

/* 空状态样式 */
.session-empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #999999;
}

.session-empty-text {
  font-size: 16px;
  margin-top: 16px;
}

/* 响应式样式 */
@media screen and (max-width: 375px) {
  .session-coach-name {
    font-size: 20px;
  }
  
  .session-last-message {
    font-size: 16px;
  }
  
  .session-avatar {
    width: 60px;
    height: 60px;
  }
  
  .session-item {
    height: 100px;
    padding: 12px 16px;
  }
}

@media screen and (max-width: 320px) {
  .session-coach-name {
    font-size: 18px;
  }
  
  .session-last-message {
    font-size: 14px;
  }
  
  .session-avatar {
    width: 50px;
    height: 50px;
  }
  
  .session-item {
    height: 90px;
    padding: 10px 14px;
  }
}